package com.ninjia.core.services.impl;

import com.github.pagehelper.PageHelper;
import com.ninjia.core.services.UserServices;
import org.springframework.beans.factory.annotation.Autowired;
import com.ninjia.common.pojo.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServicesImpl implements UserServices {
    @Autowired
    YqUserMapper userMapper;
    @Override
    public List<YqUser> findAll(Page page) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return userMapper.selectByExample(new YqUserExample());
    }
}
